package demo.day05

//Koltin语言的mutator 函数学习
fun main() {
    val list = mutableListOf("aa", "bb", "cc")
    // 运算符重载
    list += "dd"
    list += "ee"
    list -= "dd"
    println(list)

    list.removeIf {
        it == "dd" || it == "ee"
    }
    println(list)
}